package com.example.mydy.model;

import com.google.gson.annotations.SerializedName;

/**
 * 推荐人信息响应模型
 */
public class InviterResponse {
    
    @SerializedName("success")
    private boolean success;
    
    @SerializedName("message")
    private String message;
    
    @SerializedName("directInviter")
    private Inviter directInviter;
    
    @SerializedName("level2Inviter")
    private Inviter level2Inviter;
    
    @SerializedName("level3Inviter")
    private Inviter level3Inviter;
    
    public static class Inviter {
        @SerializedName("id")
        private int id;
        
        @SerializedName("username")
        private String username;
        
        @SerializedName("nickname")
        private String nickname;
        
        @SerializedName("rewardRatio")
        private double rewardRatio;
        
        public int getId() {
            return id;
        }
        
        public void setId(int id) {
            this.id = id;
        }
        
        public String getUsername() {
            return username;
        }
        
        public void setUsername(String username) {
            this.username = username;
        }
        
        public String getNickname() {
            return nickname;
        }
        
        public void setNickname(String nickname) {
            this.nickname = nickname;
        }
        
        public double getRewardRatio() {
            return rewardRatio;
        }
        
        public void setRewardRatio(double rewardRatio) {
            this.rewardRatio = rewardRatio;
        }
    }
    
    public boolean isSuccess() {
        return success;
    }
    
    public void setSuccess(boolean success) {
        this.success = success;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public Inviter getDirectInviter() {
        return directInviter;
    }
    
    public void setDirectInviter(Inviter directInviter) {
        this.directInviter = directInviter;
    }
    
    public Inviter getLevel2Inviter() {
        return level2Inviter;
    }
    
    public void setLevel2Inviter(Inviter level2Inviter) {
        this.level2Inviter = level2Inviter;
    }
    
    public Inviter getLevel3Inviter() {
        return level3Inviter;
    }
    
    public void setLevel3Inviter(Inviter level3Inviter) {
        this.level3Inviter = level3Inviter;
    }
} 